<?php $form=$this->beginWidget('CActiveForm', array(
	'id' => 'diskSelectionForm',
	'enableAjaxValidation'=>true,
	'action'=>$action,
)); ?>

	<?php echo $form->dropDownList($diskSelection,'producers', CHtml::listData(DiskProducers::model()->alphabetically()->with('disks.sizes:inSight')->findAll(), 'alias', 'title'), array( 'empty'=>'Производитель:' )); ?>
	<?php echo $form->error($diskSelection,'producers'); ?>

	<?php echo $form->dropDownList($diskSelection,'width', CHtml::listData(DiskSizes::model()->inSight()->findAll(array('group'=>'width')), 'width', 'width'), array( 'empty'=>'Ширина:' )); ?>
	<?php echo $form->error($diskSelection,'width'); ?>

	<?php echo $form->dropDownList($diskSelection,'diameter', CHtml::listData(DiskSizes::model()->inSight()->findAll(array('group'=>'diameter')), 'diameter', 'diameter'), array( 'empty'=>'Диаметр:' )); ?>
	<?php echo $form->error($diskSelection,'diameter'); ?>

	<?php echo $form->dropDownList($diskSelection,'PCD', CHtml::listData(DiskSizes::model()->inSight()->findAll(array('select'=>'CONCAT(PCD_screws, "x", PCD_diameter) as PCD0', 'group'=>'PCD0')), 'PCD0', 'PCD0'), array( 'empty'=>'Крепёж:' )); ?>
	<?php echo $form->error($diskSelection,'PCD'); ?>

	<?php echo $form->dropDownList($diskSelection,'ET', CHtml::listData(DiskSizes::model()->inSight()->findAll(array('group'=>'ET')), 'ET', 'ET'), array( 'empty'=>'Вылет:' )); ?>
	<?php echo $form->error($diskSelection,'ET'); ?>

	<button type="submit" class='submitbtm'>
		<img src='/themes/2011/images/selectbtn.png' alt="Подобрать">
	</button>

<?php $this->endWidget(); ?>
